
set path=%path%;C:\OHOS\tools\hcc_riscv32_win\bin

riscv32-unknown-elf-as -march=rv32imac -mabi=ilp32 vectors.s -o vectors.o

riscv32-unknown-elf-gcc -march=rv32imac -mabi=ilp32 -c main.c -o main.o

riscv32-unknown-elf-ld -T link.ld main.o vectors.o -o led.elf -Map=led.map

riscv32-unknown-elf-objcopy -O binary led.elf led.bin

..\\tools\\sign_tool\\sign_tool.exe -i led.bin -o led_signed.bin -n

riscv32-unknown-elf-objdump -d led.elf > led.asm